<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:s="http://sduept.security.el/func"
	template="/template/template_dialog.xhtml">
	<ui:define name="head">
		<title>故障日志报告</title>
		<style>
			.ui-widget {
				font-family: "Microsoft JhengHei";
				font-weight: bold;
				font-size: 1.15em;
			}
			
			.ui-commandlink {
				font-family: FontAwesome;
			}
			
			.ui-panel .ui-panel-content {
				border: 0;
				background: 0;
				padding: 0 !important;
			}
			
			.ui-panel .ui-panel-titlebar-icon {
				margin-top: 0;
			}
			
			.ui-datatable .ui-datatable-footer {
				text-align: right;
				padding: 4px 10px;
			}
			
			.ui-datatable .ui-datatable-header {
				text-align: left;
				/* border-top: 0px;
			    border-left: 0px; */
			}
			
			.ui-datatable .ui-datatable-data {
				border-top: 0px;
				border-left: 0px;
			}
			
			.ui-md-6, .ui-md-12, .ui-g-6, .ui-g-12 {
				padding: 0px !important;
			}
	
			.box-tools i {
				cursor: pointer;
				color: #999;
				margin-right: 5px;
			}
			
			.mouseon {
				cursor: pointer;
			}
			
			.box-tools i:hover {
				color: #3FA7DC;
			}
			
			.btn {
				padding: 1px 6px;
			}
			
			td {
				padding: 9px;
			}
		
		
		</style>
		<link href='/resources/plugins/layer/skin/layer.css' rel='stylesheet' />
	</ui:define>
	<ui:define name="content">
		<h:form id="faultreportlogform">
			<p:dataTable id="dataTb" var="item" value="#{faultReportLogController.log}"
				style="margin-bottom:0"	emptyMessage="无记录" rows="5" paginator="true" rowIndexVar="ite"
				paginatorTemplate="{Customization} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
				widgetVar="dataTb" scrollable="true" rowsPerPageTemplate="5,10,20" 	paginatorPosition="bottom">					
				<p:column width="3" headerText="序号 ">
					<h:outputText value="#{ite+1}" />
				</p:column>
				<p:column width="30" headerText="故障时间">
					<h:outputText value="#{item.faultDate}">
						<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
					</h:outputText>
				</p:column>
				<p:column width="30" headerText="日志分析时间">
					<h:outputText value="#{item.createDate}">
						<f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" />
					</h:outputText>
				</p:column>
				<p:column width="250" headerText="日志内容">
					<h:outputText value="#{item.content}" />
				</p:column>		
			</p:dataTable>
		</h:form>
	</ui:define>
</ui:composition>